package com.whut.monitor.util;

import java.util.Map;

/**
 * Created by WSJ on 2017/10/16.
 */
public class SyncUtil {

    public static void msg2Hbase(String msg , Map<String,String> map){
        String[] arr = msg.split("\n");
        for (String str : arr) {
            if (str.contains("@@") || str.contains("HbaseCP") || str.contains("!!")){
                //标志位，不操作
            }else {
                String[] content = str.split("#");
                map.put(content[0],content[1]);
            }
        }
    }

}
